<?php
		//数据库链接
		$dbname = 'union_youth';
		$host = "cdb-9qoiyup8.bj.tencentcdb.com:10122";
		$user = "root";
		$pwd = "15888461927pps";
		$appid = 'wxb38ab1fe1dd60fed';
		$sessionKey = '45a66b765cce07b3e7026c90a419fa6c';

		$conn = new mysqli($host, $user, $pwd, $dbname);
		if ($conn->connect_errno) {
			printf("Connect failed: %s\n", $conn->connect_error);
			exit();
		}
		mysqli_query($conn, "set names utf8"); //数据库编码格式

?>



